
#Region "Summary"
''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvDataApprove
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Query Result Single Business Entity
''' </summary>
''' <remarks>
''' Sample of business entity coding
''' </remarks>
''' <history>
''' 	[Generater by Nok]	22/3/2549 10:21:14	Created
''' </history>
''' -----------------------------------------------------------------------------
#End Region

#Region ".NET Framework Class Import"
Imports System
Imports System.Xml.Serialization
Imports System.IO
Imports System.Runtime.Serialization
Imports System.Runtime.Serialization.Formatters.Binary
Imports System.Collections
#End Region

<Serializable()> _
Public Class QueryInvDataApprove
#Region "Internal member variables"
    Private _ApproveById As String
    Private _ApproveBy As Byte
    Private _Admin As Byte
    Private _Status As Byte
    Private _ApproveAgent As Byte
#End Region

    Public Sub New()
        _ApproveById = Nothing
        _ApproveBy = Nothing
        _Admin = Nothing
        _Status = Nothing
        _ApproveAgent = Nothing
    End Sub

    Public Sub New(ByVal ApproveById As String, _
       ByVal ApproveBy As Byte, _
       ByVal Admin As Byte, _
       ByVal Status As Byte, _
       ByVal ApproveAgent As Byte)
        _ApproveById = ApproveById
        _ApproveBy = ApproveBy
        _Admin = Admin
        _Status = Status
        _ApproveAgent = ApproveAgent
    End Sub

#Region "Property"

    Public Property ApproveById() As String
        Get
            Return _ApproveById
        End Get
        Set(ByVal value As String)
            _ApproveById = value
        End Set
    End Property


    Public Property ApproveBy() As Byte
        Get
            Return _ApproveBy
        End Get
        Set(ByVal value As Byte)
            _ApproveBy = value
        End Set
    End Property


    Public Property Admin() As Byte
        Get
            Return _Admin
        End Get
        Set(ByVal value As Byte)
            _Admin = value
        End Set
    End Property


    Public Property Status() As Byte
        Get
            Return _Status
        End Get
        Set(ByVal value As Byte)
            _Status = value
        End Set
    End Property


    Public Property ApproveAgent() As Byte
        Get
            Return _ApproveAgent
        End Get
        Set(ByVal value As Byte)
            _ApproveAgent = value
        End Set
    End Property

#End Region
End Class

''' -----------------------------------------------------------------------------
''' Project	 : PTT.StationsTracking.Data
''' Class	 : StationsTracking.Data.QueryInvDataApproves
''' 
''' -----------------------------------------------------------------------------
''' <summary>
''' Collection of query result
''' </summary>
''' <remarks>
''' Sample
''' </remarks>
''' <history>
''' 	[NOK'S Generater]	22/3/2549 10:21:14	Created
''' </history>
''' -----------------------------------------------------------------------------
<Serializable()> _
Public Class QueryInvDataApproves
    Inherits CollectionBase


    Default Public ReadOnly Property Item(ByVal index As Integer) As QueryInvDataApprove
        Get
            If (index < 0 Or index >= Me.InnerList.Count) Then
                Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
            Else
                Return CType(Me.InnerList(index), QueryInvDataApprove)
            End If
        End Get
    End Property

    Public Sub Add(ByVal info As QueryInvDataApprove)
        Me.InnerList.Add(info)
    End Sub

    Public Sub SetItem(ByVal index As Integer, ByVal value As QueryInvDataApprove)
        If (index < 0 Or index >= Me.InnerList.Count) Then
            Throw New Exception("index has to be between 0 and " & (Me.InnerList.Count - 1).ToString())
        Else
            Me.InnerList(index) = value
        End If
    End Sub


End Class

